package com.lh0811.forge.pserv.basic.server.api.impl;

import com.lh0811.forge.dependency.basic_code.BeanHelper;
import com.lh0811.forge.pserv.basic.api.api.CommConfigApi;
import com.lh0811.forge.pserv.basic.api.vo.CommConfigVo;
import com.lh0811.forge.pserv.basic.server.service.CommConfigService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CommConfigApiImpl implements CommConfigApi {

    @Resource
    private CommConfigService commConfigService;

    /**
     * 获取配置信息
     */
    @Override
    public CommConfigVo getConfigValue(String configType, String configKey) throws Exception {
        return BeanHelper.copyBean(commConfigService.getConfigValue(configType, configKey), CommConfigVo.class);
    }


}
